package lab.dimko;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class HelloFirstLabActivity extends Activity {
    /** Called when the activity is first created. */
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.hello);
        
        final TextView helloView = (TextView)findViewById(R.id.helloView);
        Intent i = getIntent(); 
        if (i != null) {
        	helloView.setText(this.getString(R.string.hello)+" "+i.getStringExtra("name")+"!");
        	
        }
    }
}